package com.springboot.shanhexin.service;

import com.springboot.shanhexin.dao.my_touristDao;
import com.springboot.shanhexin.entity.my_tourist;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class my_touristService {

    @Autowired
    private my_touristDao my_touristDao;

    /**
     * 全部分页显示
     * @return
     */
    public List<my_tourist> find(String uid, String title) {
        return my_touristDao.find(uid, title);
    }

    /**
     * 添加
     * @param
     */
    public void add(my_tourist my_tourist) {
        my_touristDao.add(my_tourist);
    }

    /**
     * 删除
     * @param id
     */
    public void delete(int id) {
        my_touristDao.delete(id);
    }

}
